home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows the use of CFDIRECTORY
- to display the contents of the snippets directory in
- CFDOCS --->
- <HTML>
- <HEAD>
- <TITLE>CFDIRECTORY Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>CFDIRECTORY Example</H3>
-
- <!--- Use CFDIRECTORY to give the contents of the
- snippets directory, order by name and size --->
-
- <CFDIRECTORY DIRECTORY="#GetDirectoryFromPath(GetTemplatePath())#"
- NAME="myDirectory"
- SORT="name ASC, size DESC">
- <!--- Output the contents of the CFDIRECTORY as a CFTABLE --->
- <CFTABLE QUERY="myDirectory" HTMLTABLE COLHEADERS>
- <CFCOL HEADER="NAME:"
- TEXT="#Name#">
- <CFCOL HEADER="SIZE:"
- TEXT="#Size#">
- </CFTABLE>
-
- </BODY>
- </HTML>
-